package cn.stylefeng.guns.modular.business.frequency.financecheckdetail.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 对账单结算记录明细表表
 *
 * @author yujie
 * @date 2023/05/09 17:17
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class FinanceCheckDetailParam extends BaseParam {

    /**
     * finance_check_id
     */
    @NotNull(message = "finance_check_id不能为空",groups = {add.class,edit.class})
    private Long financeCheckId;

    /**
     * finance_detail_id
     */
    @NotNull(message = "finance_detail_id不能为空",groups = {add.class,edit.class})
    private Long financeDetailId;

    /**
     * 应结款
     */
    @NotNull(message = "应结款不能为空",groups = {add.class,edit.class})
    private BigDecimal checkFee;

    /**
     * 类型
     */
    @NotNull(message = "类型不能为空",groups = {add.class,edit.class})
    private Integer type;

    /**
     * id
     */
    @NotNull(message = "id不能为空",groups = {edit.class})
    private Long id;

}
